<%
  ' Si el usuario no está conectado, redirigir a la página de inicio de sesi&oacute;n
  If Not Session("auth_granted") = "true" Then 

    Response.Redirect "login.asp"
  Response.End
  End If
    qGestion = Session("auth_granted_poa_gestion")
    qRegistro1 = request.QueryString("qRegistro")
    
%>

<!--#include file="Cabecera.asp" -->
<!--#include file="Funciones/FuncionesGenerales.asp" -->
<!--<script language="JavaScript" src="Scripts/popcalendar.js"></script>-->
<script type="text/javascript" src="Scripts/swfobject.js"></script>
<script type="text/javascript" src="Scripts/ejecucion.js"></script>
 <script>
     var gest = <%= qGestion%>;
     var qRegistro = <%= qRegistro1%>;
     var mesencurso = <%= Session("auth_granted_poa_mes_otro")%>
        $(document).ready(function () { $("[rel='tooltipLef']").tooltip({ placement: 'top' }); });
    </script>   
 <script>
        $(document).ready(function () { $("[rel='tooltipTop']").tooltip({ placement:'top' }); });
 </script>  

<script>
    
    $(document).ready(function valormes(){
        $("[data-toggle*='modal']").click(function valormes(){

            //console.log(gest);
             mes = $(this).attr("mes"); //var gestion 


            //verificamos que el mes seleccionado estee en curso

            if ( mes == mesencurso || mes==1 || mes==2 || mes==3 || mes==4 || mes==5 || mes==6){
                 
                  $("#formdetalleejec").show();
              }else{
                  $("#formdetalleejec").hide();
              }


            
             // llamada ayax
             $("#gridDetalle").empty();
             //.load($page_url,{noncache: new Date().getTime()},function(){..})
             var time = new Date().getTime();
             //console.log(time);
             
            //cargamos registros por mes
            $( "#gridDetalle" ).load( "ListarDetalleEjecucion.asp?noncache="+ time +"&qGestion=" + gest + "&qRegistro=" + qRegistro + "&mes=" + mes + "" );
              $("#MesGestion").val(mes);                         
             //document.getElementById("coopertroche").innerHTML = mes;


        });


     
            $("#formmodal").validate({
                rules: {
                    nuri: "required",
                    detalle: "required",
                    
                },
                messages: {
                        nuri: {
                        required: "<span class='label label-danger'>Campo Obligatorio.<span>"
                    },
                    detalle: {
                        required: "<span class='label label-danger'>Campo Obligatorio.<span>"
                    },
                },
                               
            });

    });
</script>     

<script type="text/javascript">
  // Solo permite ingresar numeros.
  function soloNumeros(e) {
    var key = window.Event ? e.which : e.keyCode
    return (key >= 48 && key <= 57)
  }
</script>

<%
On Error Resume Next
  

'// Recuperar la gestion de trabajo
qGestion = Session("auth_granted_poa_gestion")

'// Recuperar la carpet de trabajo
qCarpeta = request.QueryString("qCarpeta")
if qCarpeta = "" then qCarpeta = 0

'// Recuperar el registro 
qRegistro = request.QueryString("qRegistro")
if qRegistro = "" then qRegistro = 0

'// Recuperar el objetivo 
qObjetivo = request.QueryString("qObjetivo")
if qObjetivo = "" then qObjetivo = 0

'// Recuperar el Retorno 
qRetorno = request.QueryString("qRetorno")
if qRetorno = "" then qRetorno = 0

'// Recuperar el Regreso 
qRegreso = request.QueryString("qRegreso")
if qRegreso = "" then qRegreso = 0

'// Recuperar la accion
qAccion = request.QueryString("qAccion")
if qAccion = "" then qAccion = 0

'// Recuperar la apertura
qApertura = request.QueryString("qApertura")
if qApertura = "" then qApertura = 0

''// Recupera Prod Operacion
qPOperacion = request.QueryString("qPOperacion")
if qPOperacion = "" then qPOperacion = 0


cMes = request.QueryString("cMes")
if cMes = "" then cMes = 0

'// Recuperar los parametros WhereToGo y WhatToDo
WhereToGo = request.QueryString("WhereToGo")
if WhereToGo = "" then WhereToGo = 0
WhatToDo = request.QueryString("WhatToDo")
if WhatToDo = "" then WhatToDo = 0


'// Comando para Ejecutar Registro
if WhatToDo = "cmdExecute" then
    WhereToGo = 0
  sSQL = ""
  sSQL = sSQL & " SELECT pro"& qGestion &"_id, p"& qGestion &"_id, pro"& qGestion &"_codigo, pro"& qGestion &"_proceso,"
  sSQL = sSQL & " pro"& qGestion &"_objetivo, indi_id, pro"& qGestion &"_indicador,"
  sSQL = sSQL & " pro"& qGestion &"_formula, pro"& qGestion &"_linea_base, pro"& qGestion &"_meta,"
  sSQL = sSQL & " pro"& qGestion &"_fuente_verificacion, pro"& qGestion &"_metodo, pro"& qGestion &"_tendencia,"
  sSQL = sSQL & " pro"& qGestion &"_supuestos, pro"& qGestion &"_presupuesto, pro"& qGestion &"_ponderacion,"
  sSQL = sSQL & " pro"& qGestion &"_ponderacion, pro"& qGestion &"_responsable, uni_id,"
  
  ' absoluto PROG
  ' pos : 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
  sSQL = sSQL & " pro"& qGestion &"_1P, pro"& qGestion &"_2P, pro"& qGestion &"_3P, pro"& qGestion &"_4P, pro"& qGestion &"_5P, pro"& qGestion &"_6P, pro"& qGestion &"_7P, pro"& qGestion &"_8P, pro"& qGestion &"_9P, pro"& qGestion &"_10P, pro"& qGestion &"_11P, pro"& qGestion &"_12P,"
  ' absoluto EJEC
  ' pos : 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42
  sSQL = sSQL & " pro"& qGestion &"_1E, pro"& qGestion &"_2E, pro"& qGestion &"_3E, pro"& qGestion &"_4E, pro"& qGestion &"_5E, pro"& qGestion &"_6E, pro"& qGestion &"_7E, pro"& qGestion &"_8E, pro"& qGestion &"_9E, pro"& qGestion &"_10E, pro"& qGestion &"_11E, pro"& qGestion &"_12E,"
  
  ' calidad PROG
  ' pos : 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54
  sSQL = sSQL & " pro"& qGestion &"_1_cal1_p, pro"& qGestion &"_2_cal1_p, pro"& qGestion &"_3_cal1_p, pro"& qGestion &"_4_cal1_p, pro"& qGestion &"_5_cal1_p, pro"& qGestion &"_6_cal1_p, pro"& qGestion &"_7_cal1_p, pro"& qGestion &"_8_cal1_p, pro"& qGestion &"_9_cal1_p, pro"& qGestion &"_10_cal1_p, pro"& qGestion &"_11_cal1_p, pro"& qGestion &"_12_cal1_p,"
  
  ' pos : 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66
  sSQL = sSQL & " pro"& qGestion &"_1_cal2_p, pro"& qGestion &"_2_cal2_p, pro"& qGestion &"_3_cal2_p, pro"& qGestion &"_4_cal2_p, pro"& qGestion &"_5_cal2_p, pro"& qGestion &"_6_cal2_p, pro"& qGestion &"_7_cal2_p, pro"& qGestion &"_8_cal2_p, pro"& qGestion &"_9_cal2_p, pro"& qGestion &"_10_cal2_p, pro"& qGestion &"_11_cal2_p, pro"& qGestion &"_12_cal2_p,"
  
  ' pos : 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78
  sSQL = sSQL & " pro"& qGestion &"_1_cal3_p, pro"& qGestion &"_2_cal3_p, pro"& qGestion &"_3_cal3_p, pro"& qGestion &"_4_cal3_p, pro"& qGestion &"_5_cal3_p, pro"& qGestion &"_6_cal3_p, pro"& qGestion &"_7_cal3_p, pro"& qGestion &"_8_cal3_p, pro"& qGestion &"_9_cal3_p, pro"& qGestion &"_10_cal3_p, pro"& qGestion &"_11_cal3_p, pro"& qGestion &"_12_cal3_p,"
  
  ' pos : 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90
  sSQL = sSQL & " pro"& qGestion &"_1_cal4_p, pro"& qGestion &"_2_cal4_p, pro"& qGestion &"_3_cal4_p, pro"& qGestion &"_4_cal4_p, pro"& qGestion &"_5_cal4_p, pro"& qGestion &"_6_cal4_p, pro"& qGestion &"_7_cal4_p, pro"& qGestion &"_8_cal4_p, pro"& qGestion &"_9_cal4_p, pro"& qGestion &"_10_cal4_p, pro"& qGestion &"_11_cal4_p, pro"& qGestion &"_12_cal4_p,"
  
  ' pos : 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102
  sSQL = sSQL & " pro"& qGestion &"_1_cal5_p, pro"& qGestion &"_2_cal5_p, pro"& qGestion &"_3_cal5_p, pro"& qGestion &"_4_cal5_p, pro"& qGestion &"_5_cal5_p, pro"& qGestion &"_6_cal5_p, pro"& qGestion &"_7_cal5_p, pro"& qGestion &"_8_cal5_p, pro"& qGestion &"_9_cal5_p, pro"& qGestion &"_10_cal5_p, pro"& qGestion &"_11_cal5_p, pro"& qGestion &"_12_cal5_p,"
  
  ' calidad EJEC
  ' pos : 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114
  sSQL = sSQL & " pro"& qGestion &"_1_cal1_e, pro"& qGestion &"_2_cal1_e, pro"& qGestion &"_3_cal1_e, pro"& qGestion &"_4_cal1_e, pro"& qGestion &"_5_cal1_e, pro"& qGestion &"_6_cal1_e, pro"& qGestion &"_7_cal1_e, pro"& qGestion &"_8_cal1_e, pro"& qGestion &"_9_cal1_e, pro"& qGestion &"_10_cal1_e, pro"& qGestion &"_11_cal1_e, pro"& qGestion &"_12_cal1_e,"
  
  ' pos : 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126
  sSQL = sSQL & " pro"& qGestion &"_1_cal2_e, pro"& qGestion &"_2_cal2_e, pro"& qGestion &"_3_cal2_e, pro"& qGestion &"_4_cal2_e, pro"& qGestion &"_5_cal2_e, pro"& qGestion &"_6_cal2_e, pro"& qGestion &"_7_cal2_e, pro"& qGestion &"_8_cal2_e, pro"& qGestion &"_9_cal2_e, pro"& qGestion &"_10_cal2_e, pro"& qGestion &"_11_cal2_e, pro"& qGestion &"_12_cal2_e,"
  
  ' pos : 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138
  sSQL = sSQL & " pro"& qGestion &"_1_cal3_e, pro"& qGestion &"_2_cal3_e, pro"& qGestion &"_3_cal3_e, pro"& qGestion &"_4_cal3_e, pro"& qGestion &"_5_cal3_e, pro"& qGestion &"_6_cal3_e, pro"& qGestion &"_7_cal3_e, pro"& qGestion &"_8_cal3_e, pro"& qGestion &"_9_cal3_e, pro"& qGestion &"_10_cal3_e, pro"& qGestion &"_11_cal3_e, pro"& qGestion &"_12_cal3_e,"
  
  ' pos : 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150
  sSQL = sSQL & " pro"& qGestion &"_1_cal4_e, pro"& qGestion &"_2_cal4_e, pro"& qGestion &"_3_cal4_e, pro"& qGestion &"_4_cal4_e, pro"& qGestion &"_5_cal4_e, pro"& qGestion &"_6_cal4_e, pro"& qGestion &"_7_cal4_e, pro"& qGestion &"_8_cal4_e, pro"& qGestion &"_9_cal4_e, pro"& qGestion &"_10_cal4_e, pro"& qGestion &"_11_cal4_e, pro"& qGestion &"_12_cal4_e,"
  
  ' pos : 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162
  sSQL = sSQL & " pro"& qGestion &"_1_cal5_e, pro"& qGestion &"_2_cal5_e, pro"& qGestion &"_3_cal5_e, pro"& qGestion &"_4_cal5_e, pro"& qGestion &"_5_cal5_e, pro"& qGestion &"_6_cal5_e, pro"& qGestion &"_7_cal5_e, pro"& qGestion &"_8_cal5_e, pro"& qGestion &"_9_cal5_e, pro"& qGestion &"_10_cal5_e, pro"& qGestion &"_11_cal5_e, pro"& qGestion &"_12_cal5_e,"
  
  ' relativo PROG
  ' pos : 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174
  sSQL = sSQL & " pro"& qGestion &"_1_rel1_p, pro"& qGestion &"_2_rel1_p, pro"& qGestion &"_3_rel1_p, pro"& qGestion &"_4_rel1_p, pro"& qGestion &"_5_rel1_p, pro"& qGestion &"_6_rel1_p, pro"& qGestion &"_7_rel1_p, pro"& qGestion &"_8_rel1_p, pro"& qGestion &"_9_rel1_p, pro"& qGestion &"_10_rel1_p, pro"& qGestion &"_11_rel1_p, pro"& qGestion &"_12_rel1_p,"
  
  ' pos : 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186
  sSQL = sSQL & " pro"& qGestion &"_1_rel2_p, pro"& qGestion &"_2_rel2_p, pro"& qGestion &"_3_rel2_p, pro"& qGestion &"_4_rel2_p, pro"& qGestion &"_5_rel2_p, pro"& qGestion &"_6_rel2_p, pro"& qGestion &"_7_rel2_p, pro"& qGestion &"_8_rel2_p, pro"& qGestion &"_9_rel2_p, pro"& qGestion &"_10_rel2_p, pro"& qGestion &"_11_rel2_p, pro"& qGestion &"_12_rel2_p,"
  
  ' pos : 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198
  sSQL = sSQL & " pro"& qGestion &"_1_rel3_p, pro"& qGestion &"_2_rel3_p, pro"& qGestion &"_3_rel3_p, pro"& qGestion &"_4_rel3_p, pro"& qGestion &"_5_rel3_p, pro"& qGestion &"_6_rel3_p, pro"& qGestion &"_7_rel3_p, pro"& qGestion &"_8_rel3_p, pro"& qGestion &"_9_rel3_p, pro"& qGestion &"_10_rel3_p, pro"& qGestion &"_11_rel3_p, pro"& qGestion &"_12_rel3_p,"
  
  ' relativo EJEC
  ' pos : 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210
  sSQL = sSQL & " pro"& qGestion &"_1_rel1_e, pro"& qGestion &"_2_rel1_e, pro"& qGestion &"_3_rel1_e, pro"& qGestion &"_4_rel1_e, pro"& qGestion &"_5_rel1_e, pro"& qGestion &"_6_rel1_e, pro"& qGestion &"_7_rel1_e, pro"& qGestion &"_8_rel1_e, pro"& qGestion &"_9_rel1_e, pro"& qGestion &"_10_rel1_e, pro"& qGestion &"_11_rel1_e, pro"& qGestion &"_12_rel1_e,"
  
  ' pos : 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222
  sSQL = sSQL & " pro"& qGestion &"_1_rel2_e, pro"& qGestion &"_2_rel2_e, pro"& qGestion &"_3_rel2_e, pro"& qGestion &"_4_rel2_e, pro"& qGestion &"_5_rel2_e, pro"& qGestion &"_6_rel2_e, pro"& qGestion &"_7_rel2_e, pro"& qGestion &"_8_rel2_e, pro"& qGestion &"_9_rel2_e, pro"& qGestion &"_10_rel2_e, pro"& qGestion &"_11_rel2_e, pro"& qGestion &"_12_rel2_e,"
  
  ' pos : 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234
  sSQL = sSQL & " pro"& qGestion &"_1_rel3_e, pro"& qGestion &"_2_rel3_e, pro"& qGestion &"_3_rel3_e, pro"& qGestion &"_4_rel3_e, pro"& qGestion &"_5_rel3_e, pro"& qGestion &"_6_rel3_e, pro"& qGestion &"_7_rel3_e, pro"& qGestion &"_8_rel3_e, pro"& qGestion &"_9_rel3_e, pro"& qGestion &"_10_rel3_e, pro"& qGestion &"_11_rel3_e, pro"& qGestion &"_12_rel3_e,"
  
  ' pos : 225, 226, 227
  sSQL = sSQL & " pro"& qGestion &"_A, pro"& qGestion &"_B, pro"& qGestion &"_C"
  ''pos 228
  sSQL = sSQL & " , pro"& qGestion &"_denominador"
  ' pos 239 - 244
  sSQL = sSQL & " , ejecucion_porcentaje_aux_1, ejecucion_porcentaje_aux_2, ejecucion_porcentaje_aux_3, ejecucion_porcentaje_aux_4, ejecucion_porcentaje_aux_5, ejecucion_porcentaje_aux_6 "
  ' pos 245 - 250
  sSQL = sSQL & " , ejecucion_porcentaje_aux_7, ejecucion_porcentaje_aux_8, ejecucion_porcentaje_aux_9, ejecucion_porcentaje_aux_10, ejecucion_porcentaje_aux_11, ejecucion_porcentaje_aux_12 "
  sSQL = sSQL & " FROM Procesos"& qGestion &""
  sSQL = sSQL & " WHERE pro"& qGestion &"_id = "& qRegistro &""
  'Response.Write(sSQL)
  'Response.End
  MatrizResultado = MatrixBD(sSQL, 1)
  If VarType(MatrizResultado) = 8  then
    CuantosRegistros = -1
  Else
    CuantosRegistros = UBound(MatrizResultado,2)	
  End If
    If CuantosRegistros <> -1 then
        var0 =  MatrizResultado(0,0)
        var1 =  MatrizResultado(1,0)
        var2 =  MatrizResultado(2,0)
        var3 =  MatrizResultado(3,0)
    var4 =  MatrizResultado(4,0)
    var5 =  MatrizResultado(5,0)
        var6 =  MatrizResultado(6,0)
        var7 =  MatrizResultado(7,0)
        var8 =  MatrizResultado(8,0)
    var9 =  MatrizResultado(9,0)
    var10 =  MatrizResultado(10,0)
        var11 =  MatrizResultado(11,0)
    var12 =  MatrizResultado(12,0)
    var13 =  MatrizResultado(13,0)
    var14 =  MatrizResultado(14,0)
    var15 =  MatrizResultado(15,0)
        var16 =  MatrizResultado(16,0)
        var17 =  MatrizResultado(17,0)
        var18 =  MatrizResultado(18,0)
    var19 =  DbTW(MatrizResultado(19,0))
    var20 =  DbTW(MatrizResultado(20,0))
    var21 =  DbTW(MatrizResultado(21,0))
        var22 =  DbTW(MatrizResultado(22,0))
        var23 =  DbTW(MatrizResultado(23,0))
    var24 =  DbTW(MatrizResultado(24,0))
    var25 =  DbTW(MatrizResultado(25,0))
        var26 =  DbTW(MatrizResultado(26,0))
        var27 =  DbTW(MatrizResultado(27,0))
        var28 =  DbTW(MatrizResultado(28,0))
    var29 =  DbTW(MatrizResultado(29,0))
    var30 =  DbTW(MatrizResultado(30,0))
    var31 =  DbTW(MatrizResultado(31,0))
        var32 =  DbTW(MatrizResultado(32,0))
        var33 =  DbTW(MatrizResultado(33,0))
    var34 =  DbTW(MatrizResultado(34,0))
    var35 =  DbTW(MatrizResultado(35,0))
        var36 =  DbTW(MatrizResultado(36,0))
        var37 =  DbTW(MatrizResultado(37,0))
        var38 =  DbTW(MatrizResultado(38,0))
    var39 =  DbTW(MatrizResultado(39,0))
    var40 =  DbTW(MatrizResultado(40,0))
    var41 =  DbTW(MatrizResultado(41,0))
        var42 =  DbTW(MatrizResultado(42,0))
        var43 =  MatrizResultado(43,0)
    var44 =  MatrizResultado(44,0)
    var45 =  MatrizResultado(45,0)
        var46 =  MatrizResultado(46,0)
        var47 =  MatrizResultado(47,0)
        var48 =  MatrizResultado(48,0)
    var49 =  MatrizResultado(49,0)
    var50 =  MatrizResultado(50,0)
    var51 =  MatrizResultado(51,0)
        var52 =  MatrizResultado(52,0)
        var53 =  MatrizResultado(53,0)
    var54 =  MatrizResultado(54,0)
    var55 =  MatrizResultado(55,0)
        var56 =  MatrizResultado(56,0)
        var57 =  MatrizResultado(57,0)
        var58 =  MatrizResultado(58,0)
    var59 =  MatrizResultado(59,0)
    var60 =  MatrizResultado(60,0)
        var61 =  MatrizResultado(61,0)
    var62 =  MatrizResultado(62,0)
    var63 =  MatrizResultado(63,0)
    var64 =  MatrizResultado(64,0)
    var65 =  MatrizResultado(65,0)
        var66 =  MatrizResultado(66,0)
        var67 =  MatrizResultado(67,0)
        var68 =  MatrizResultado(68,0)
    var69 =  MatrizResultado(69,0)
    var70 =  MatrizResultado(70,0)
    var71 =  MatrizResultado(71,0)
        var72 =  MatrizResultado(72,0)
        var73 =  MatrizResultado(73,0)
    var74 =  MatrizResultado(74,0)
    var75 =  MatrizResultado(75,0)
        var76 =  MatrizResultado(76,0)
        var77 =  MatrizResultado(77,0)
        var78 =  MatrizResultado(78,0)
    var79 =  MatrizResultado(79,0)
    var80 =  MatrizResultado(80,0)
    var81 =  MatrizResultado(81,0)
        var82 =  MatrizResultado(82,0)
        var83 =  MatrizResultado(83,0)
    var84 =  MatrizResultado(84,0)
    var85 =  MatrizResultado(85,0)
        var86 =  MatrizResultado(86,0)
        var87 =  MatrizResultado(87,0)
        var88 =  MatrizResultado(88,0)
    var89 =  MatrizResultado(89,0)
    var90 =  MatrizResultado(90,0)
    var91 =  MatrizResultado(91,0)
        var92 =  MatrizResultado(92,0)
        var93 =  MatrizResultado(93,0)
    var94 =  MatrizResultado(94,0)
    var95 =  MatrizResultado(95,0)
        var96 =  MatrizResultado(96,0)
        var97 =  MatrizResultado(97,0)
        var98 =  MatrizResultado(98,0)
    var99 =  MatrizResultado(99,0)
    var100 =  MatrizResultado(100,0)
    var101 =  MatrizResultado(101,0)
        var102 =  MatrizResultado(102,0)
        var103 =  MatrizResultado(103,0)
    var104 =  MatrizResultado(104,0)
    var105 =  MatrizResultado(105,0)
        var106 =  MatrizResultado(106,0)
        var107 =  MatrizResultado(107,0)
        var108 =  MatrizResultado(108,0)
    var109 =  MatrizResultado(109,0)
    var110 =  MatrizResultado(110,0)
        var111 =  MatrizResultado(111,0)
    var112 =  MatrizResultado(112,0)
    var113 =  MatrizResultado(113,0)
    var114 =  MatrizResultado(114,0)
    var115 =  MatrizResultado(115,0)
        var116 =  MatrizResultado(116,0)
        var117 =  MatrizResultado(117,0)
        var118 =  MatrizResultado(118,0)
    var119 =  MatrizResultado(119,0)
    var120 =  MatrizResultado(120,0)
    var121 =  MatrizResultado(121,0)
        var122 =  MatrizResultado(122,0)
        var123 =  MatrizResultado(123,0)
    var124 =  MatrizResultado(124,0)
    var125 =  MatrizResultado(125,0)
        var126 =  MatrizResultado(126,0)
        var127 =  MatrizResultado(127,0)
        var128 =  MatrizResultado(128,0)
    var129 =  MatrizResultado(129,0)
    var130 =  MatrizResultado(130,0)
    var131 =  MatrizResultado(131,0)
        var132 =  MatrizResultado(132,0)
        var133 =  MatrizResultado(133,0)
    var134 =  MatrizResultado(134,0)
    var135 =  MatrizResultado(135,0)
        var136 =  MatrizResultado(136,0)
        var137 =  MatrizResultado(137,0)
        var138 =  MatrizResultado(138,0)
    var139 =  MatrizResultado(139,0)
    var140 =  MatrizResultado(140,0)
    var141 =  MatrizResultado(141,0)
        var142 =  MatrizResultado(142,0)
        var143 =  MatrizResultado(143,0)
    var144 =  MatrizResultado(144,0)
    var145 =  MatrizResultado(145,0)
        var146 =  MatrizResultado(146,0)
        var147 =  MatrizResultado(147,0)
        var148 =  MatrizResultado(148,0)
    var149 =  MatrizResultado(149,0)
    var150 =  MatrizResultado(150,0)
    var151 =  MatrizResultado(151,0)
        var152 =  MatrizResultado(152,0)
        var153 =  MatrizResultado(153,0)
    var154 =  MatrizResultado(154,0)
    var155 =  MatrizResultado(155,0)
        var156 =  MatrizResultado(156,0)
        var157 =  MatrizResultado(157,0)
        var158 =  MatrizResultado(158,0)
    var159 =  MatrizResultado(159,0)
    var160 =  MatrizResultado(160,0)
        var161 =  MatrizResultado(161,0)
    var162 =  MatrizResultado(162,0)
    var163 =  DbTW(MatrizResultado(163,0))
    var164 =  DbTW(MatrizResultado(164,0))
    var165 =  DbTW(MatrizResultado(165,0))
        var166 =  DbTW(MatrizResultado(166,0))
        var167 =  DbTW(MatrizResultado(167,0))
        var168 =  DbTW(MatrizResultado(168,0))
    var169 = DbTW(MatrizResultado(169,0))
    var170 = DbTW(MatrizResultado(170,0))
    var171 = DbTW(MatrizResultado(171,0))
        var172 = DbTW(MatrizResultado(172,0))
        var173 = DbTW(MatrizResultado(173,0))
    var174 = DbTW(MatrizResultado(174,0))
    var175 =  MatrizResultado(175,0)
        var176 =  MatrizResultado(176,0)
        var177 =  MatrizResultado(177,0)
        var178 =  MatrizResultado(178,0)
    var179 =  MatrizResultado(179,0)
    var180 =  MatrizResultado(180,0)
    var181 =  MatrizResultado(181,0)
        var182 =  MatrizResultado(182,0)
        var183 =  MatrizResultado(183,0)
    var184 =  MatrizResultado(184,0)
    var185 =  MatrizResultado(185,0)
        var186 =  MatrizResultado(186,0)
        var187 =  MatrizResultado(187,0)
        var188 =  MatrizResultado(188,0)
    var189 =  MatrizResultado(189,0)
    var190 =  MatrizResultado(190,0)
    var191 =  MatrizResultado(191,0)
        var192 =  MatrizResultado(192,0)
        var193 =  MatrizResultado(193,0)
    var194 =  MatrizResultado(194,0)
    var195 =  MatrizResultado(195,0)
        var196 =  MatrizResultado(196,0)
        var197 =  MatrizResultado(197,0)
        var198 =  MatrizResultado(198,0)
    var199 =  MatrizResultado(199,0)
    var200 =  MatrizResultado(200,0)
    var201 =  MatrizResultado(201,0)
        var202 =  MatrizResultado(202,0)
        var203 =  MatrizResultado(203,0)
    var204 =  MatrizResultado(204,0)
    var205 =  MatrizResultado(205,0)
        var206 =  MatrizResultado(206,0)
        var207 =  MatrizResultado(207,0)
        var208 =  MatrizResultado(208,0)
    var209 =  MatrizResultado(209,0)
    var210 =  MatrizResultado(210,0)
        var211 =  MatrizResultado(211,0)
    var212 =  MatrizResultado(212,0)
    var213 =  MatrizResultado(213,0)
    var214 =  MatrizResultado(214,0)
    var215 =  MatrizResultado(215,0)
        var216 =  MatrizResultado(216,0)
        var217 =  MatrizResultado(217,0)
        var218 =  MatrizResultado(218,0)
    var219 =  MatrizResultado(219,0)
    var220 =  MatrizResultado(220,0)
    var221 =  MatrizResultado(221,0)
        var222 =  MatrizResultado(222,0)
        var223 =  MatrizResultado(223,0)
    var224 =  MatrizResultado(224,0)
    var225 =  MatrizResultado(225,0)
        var226 =  MatrizResultado(226,0)
        var227 =  MatrizResultado(227,0)
        var228 =  MatrizResultado(228,0)
    var229 =  MatrizResultado(229,0)
    var230 =  MatrizResultado(230,0)
    var231 =  MatrizResultado(231,0)
        var232 =  MatrizResultado(232,0)
        var233 =  MatrizResultado(233,0)
    var234 =  MatrizResultado(234,0)
    var235 =  MatrizResultado(235,0)
        var236 =  MatrizResultado(236,0)
    var237 =  MatrizResultado(237,0)
    var238 =  MatrizResultado(238,0)
  '@
  ejecucion_porcentaje_aux_1 =  DbTW(MatrizResultado(239,0))
  ejecucion_porcentaje_aux_2 =  DbTW(MatrizResultado(240,0))
  ejecucion_porcentaje_aux_3 =  DbTW(MatrizResultado(241,0))
  ejecucion_porcentaje_aux_4 =  DbTW(MatrizResultado(242,0))
  ejecucion_porcentaje_aux_5 =  DbTW(MatrizResultado(243,0))
  ejecucion_porcentaje_aux_6 =  DbTW(MatrizResultado(244,0))
  ejecucion_porcentaje_aux_7 =  DbTW(MatrizResultado(245,0))
  ejecucion_porcentaje_aux_8 =  DbTW(MatrizResultado(246,0))
  ejecucion_porcentaje_aux_9 =  DbTW(MatrizResultado(247,0))
  ejecucion_porcentaje_aux_10 =  DbTW(MatrizResultado(248,0))
  ejecucion_porcentaje_aux_11 =  DbTW(MatrizResultado(249,0))
  ejecucion_porcentaje_aux_12 =  DbTW(MatrizResultado(250,0))

    
        WhereToGo = 4
    End If
End If


'// Comando para Guardar Ejecucion de Registro 
if WhatToDo = "cmdExecuteSave" then
    WhereToGo = 0

  'dim i
  'For Each i in Request.Form
    'Response.Write(i & "= "& Request.Form(i) &"<br>")
  'Next 
  'Response.End
  
  IDRegistro = Request.Form("IDRegistro")
  If Len(IDRegistro) = 0 Then IDRegistro = 0
   
    TipIndicador = Request.Form("TipIndicador")
  TipIndicador = Replace(TipIndicador, "'", "´")
  var5 = TipIndicador 
  
  sSQLplus = ""
  If CInt(var5) = 1 Then
    var14 = Request.Form("var14a")
    var14 = Replace(var14, "'", "´")
    var15 = Request.Form("var15a")
    var15 = Replace(var15, "'", "´")
    var16 = Request.Form("var16a")
    var16 = Replace(var16, "'", "´")
    var17 = Request.Form("var17a")
    var17 = Replace(var17, "'", "´")
    var18 = Request.Form("var18a")
    var18 = Replace(var18, "'", "´")
    var19 = Request.Form("var19a")
    var19 = Replace(var19, "'", "´")
    var20 = Request.Form("var20a")
    var20 = Replace(var20, "'", "´")
    var21 = Request.Form("var21a")
    var21 = Replace(var21, "'", "´")
    var22 = Request.Form("var22a")
    var22 = Replace(var22, "'", "´")
    var23 = Request.Form("var23a")
    var23 = Replace(var23, "'", "´")
    var24 = Request.Form("var24a")
    var24 = Replace(var24, "'", "´")
    var25 = Request.Form("var25a")
    var25 = Replace(var25, "'", "´")
    sSQLplus = sSQLplus & " pro"& qGestion &"_1E = "& var14 &", pro"& qGestion &"_2E = "& var15 &", pro"& qGestion &"_3E = "& var16 &", pro"& qGestion &"_4E = "& var17 &", pro"& qGestion &"_5E = "& var18 &", pro"& qGestion &"_6E = "& var19 &", pro"& qGestion &"_7E = "& var20 &", pro"& qGestion &"_8E = "& var21 &", pro"& qGestion &"_9E = "& var22 &", pro"& qGestion &"_10E = "& var23 &", pro"& qGestion &"_11E = "& var24 &", pro"& qGestion &"_12E = "& var25 &","
  End If
  
  If CInt(var5) = 2 Then 
    var14_1 = 0'@Request.Form("var14r1")
    var14_1 = Replace(var14_1, "'", "´")
    var14_2 = 0'@Request.Form("var14r2")
    var14_2 = Replace(var14_2, "'", "´")
    var14_3 = 0
    
    var15_1 = 0'@Request.Form("var15r1")
    var15_1 = Replace(var15_1, "'", "´")
    var15_2 = 0'@Request.Form("var15r2")
    var15_2 = Replace(var15_2, "'", "´")
    var15_3 = 0
    
    var16_1 = 0'@Request.Form("var16r1")
    var16_1 = Replace(var16_1, "'", "´")
    var16_2 = 0'@Request.Form("var16r2")
    var16_2 = Replace(var16_2, "'", "´")
    var16_3 = 0
    
    var17_1 = 0'@Request.Form("var17r1")
    var17_1 = Replace(var17_1, "'", "´")
    var17_2 = 0'@Request.Form("var17r2")
    var17_2 = Replace(var17_2, "'", "´")
    var17_3 = 0
    
    var18_1 = 0'@Request.Form("var18r1")
    var18_1 = Replace(var18_1, "'", "´")
    var18_2 = 0'@Request.Form("var18r2")
    var18_2 = Replace(var18_2, "'", "´")
    var18_3 = 0
    
    var19_1 = 0'@Request.Form("var19r1")
    var19_1 = Replace(var19_1, "'", "´")
    var19_2 = 0'@Request.Form("var19r2")
    var19_2 = Replace(var19_2, "'", "´")
    var19_3 = 0
    
    var20_1 = 0'@Request.Form("var20r1")
    var20_1 = Replace(var20_1, "'", "´")
    var20_2 = 0'@Request.Form("var20r2")
    var20_2 = Replace(var20_2, "'", "´")
    var20_3 = 0
    
    var21_1 = 0'@Request.Form("var21r1")
    var21_1 = Replace(var21_1, "'", "´")
    var21_2 = 0'@Request.Form("var21r2")
    var21_2 = Replace(var21_2, "'", "´")
    var21_3 = 0
    
    var22_1 = 0'@Request.Form("var22r1")
    var22_1 = Replace(var22_1, "'", "´")
    var22_2 = 0'@Request.Form("var22r2")
    var22_2 = Replace(var22_2, "'", "´")
    var22_3 = 0
    
    var23_1 = 0'@Request.Form("var23r1")
    var23_1 = Replace(var23_1, "'", "´")
    var23_2 = 0'@Request.Form("var23r2")
    var23_2 = Replace(var23_2, "'", "´")
    var23_3 = 0
    
    var24_1 = 0'@Request.Form("var24r1")
    var24_1 = Replace(var24_1, "'", "´")
    var24_2 = 0'@Request.Form("var24r2")
    var24_2 = Replace(var24_2, "'", "´")
    var24_3 = 0
    
    var25_1 = 0'@Request.Form("var25r1")
    var25_1 = Replace(var25_1, "'", "´")
    var25_2 = 0'@Request.Form("var25r2")
    var25_2 = Replace(var25_2, "'", "´")
    var25_3 = 0

  '@: recuperando del Form
  ejecucion_porcentaje_aux_1 = Request.Form("ejecucion_porcentaje_aux_1")
  ejecucion_porcentaje_aux_2 = Request.Form("ejecucion_porcentaje_aux_2")
  ejecucion_porcentaje_aux_3 = Request.Form("ejecucion_porcentaje_aux_3")
  ejecucion_porcentaje_aux_4 = Request.Form("ejecucion_porcentaje_aux_4")
  ejecucion_porcentaje_aux_5 = Request.Form("ejecucion_porcentaje_aux_5")
  ejecucion_porcentaje_aux_6 = Request.Form("ejecucion_porcentaje_aux_6")
  ejecucion_porcentaje_aux_7 = Request.Form("ejecucion_porcentaje_aux_7")
  ejecucion_porcentaje_aux_8 = Request.Form("ejecucion_porcentaje_aux_8")
  ejecucion_porcentaje_aux_9 = Request.Form("ejecucion_porcentaje_aux_9")
  ejecucion_porcentaje_aux_10 = Request.Form("ejecucion_porcentaje_aux_10")
  ejecucion_porcentaje_aux_11 = Request.Form("ejecucion_porcentaje_aux_11")
  ejecucion_porcentaje_aux_12 = Request.Form("ejecucion_porcentaje_aux_12")

    sSQLplus = sSQLplus & " pro"& qGestion &"_1_rel1_e = "& var14_1 &", pro"& qGestion &"_1_rel2_e = "& var14_2 &", pro"& qGestion &"_1_rel3_e = "& var14_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_2_rel1_e = "& var15_1 &", pro"& qGestion &"_2_rel2_e = "& var15_2 &", pro"& qGestion &"_2_rel3_e = "& var15_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_3_rel1_e = "& var16_1 &", pro"& qGestion &"_3_rel2_e = "& var16_2 &", pro"& qGestion &"_3_rel3_e = "& var16_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_4_rel1_e = "& var17_1 &", pro"& qGestion &"_4_rel2_e = "& var17_2 &", pro"& qGestion &"_4_rel3_e = "& var17_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_5_rel1_e = "& var18_1 &", pro"& qGestion &"_5_rel2_e = "& var18_2 &", pro"& qGestion &"_5_rel3_e = "& var18_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_6_rel1_e = "& var19_1 &", pro"& qGestion &"_6_rel2_e = "& var19_2 &", pro"& qGestion &"_6_rel3_e = "& var19_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_7_rel1_e = "& var20_1 &", pro"& qGestion &"_7_rel2_e = "& var20_2 &", pro"& qGestion &"_7_rel3_e = "& var20_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_8_rel1_e = "& var21_1 &", pro"& qGestion &"_8_rel2_e = "& var21_2 &", pro"& qGestion &"_8_rel3_e = "& var21_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_9_rel1_e = "& var22_1 &", pro"& qGestion &"_9_rel2_e = "& var22_2 &", pro"& qGestion &"_9_rel3_e = "& var22_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_10_rel1_e = "& var23_1 &", pro"& qGestion &"_10_rel2_e = "& var23_2 &", pro"& qGestion &"_10_rel3_e = "& var23_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_11_rel1_e = "& var24_1 &", pro"& qGestion &"_11_rel2_e = "& var24_2 &", pro"& qGestion &"_11_rel3_e = "& var24_3 &","
    sSQLplus = sSQLplus & " pro"& qGestion &"_12_rel1_e = "& var25_1 &", pro"& qGestion &"_12_rel2_e = "& var25_2 &", pro"& qGestion &"_12_rel3_e = "& var25_3 &""
  '@:
  sSQLplus = sSQLplus & " ,ejecucion_porcentaje_aux_1 = "& ejecucion_porcentaje_aux_1 &", ejecucion_porcentaje_aux_2 = "& ejecucion_porcentaje_aux_2 & ", ejecucion_porcentaje_aux_3 = "& ejecucion_porcentaje_aux_3 & ", ejecucion_porcentaje_aux_4 = "& ejecucion_porcentaje_aux_4 & ", ejecucion_porcentaje_aux_5 = "& ejecucion_porcentaje_aux_5 & ", ejecucion_porcentaje_aux_6 = "& ejecucion_porcentaje_aux_6 & ","
  sSQLplus = sSQLplus & " ejecucion_porcentaje_aux_7 = "& ejecucion_porcentaje_aux_7 &", ejecucion_porcentaje_aux_8 = "& ejecucion_porcentaje_aux_8 & ", ejecucion_porcentaje_aux_9 = "& ejecucion_porcentaje_aux_9 & ", ejecucion_porcentaje_aux_10 = "& ejecucion_porcentaje_aux_10 & ", ejecucion_porcentaje_aux_11 = "& ejecucion_porcentaje_aux_11 & ", ejecucion_porcentaje_aux_12 = "& ejecucion_porcentaje_aux_12 & ""
  End If
  
  If CInt(var5) = 3 Then 
    var14 = Request.Form("var14c")
    var14 = Replace(var14, "'", "´")
    var14 = CInt(var14)
    var15 = Request.Form("var15c")
    var15 = Replace(var15, "'", "´")
    var15 = CInt(var15)
    var16 = Request.Form("var16c")
    var16 = Replace(var16, "'", "´")
    var16 = CInt(var16)
    var17 = Request.Form("var17c")
    var17 = Replace(var17, "'", "´")
    var17 = CInt(var17)
    var18 = Request.Form("var18c")
    var18 = Replace(var18, "'", "´")
    var18 = CInt(var18)
    var19 = Request.Form("var19c")
    var19 = Replace(var19, "'", "´")
    var19 = CInt(var19)
    
    var20 = Request.Form("var20c")
    var20 = Replace(var20, "'", "´")
    var20 = CInt(var20)
    var21 = Request.Form("var21c")
    var21 = Replace(var21, "'", "´")
    var21 = CInt(var21)
    var22 = Request.Form("var22c")
    var22 = Replace(var22, "'", "´")
    var22 = CInt(var22)
    var23 = Request.Form("var23c")
    var23 = Replace(var23, "'", "´")
    var23 = CInt(var23)
    var24 = Request.Form("var24c")
    var24 = Replace(var24, "'", "´")
    var24 = CInt(var24)
    var25 = Request.Form("var25c")
    var25 = Replace(var25, "'", "´")
    var25 = CInt(var25)

    Select Case var14
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_1_cal1_e = "& var14 &", pro"& qGestion &"_1_cal2_e = 0, pro"& qGestion &"_1_cal3_e = 0, pro"& qGestion &"_1_cal4_e = 0, pro"& qGestion &"_1_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_1_cal1_e = 0, pro"& qGestion &"_1_cal2_e = "& var14 &", pro"& qGestion &"_1_cal3_e = 0, pro"& qGestion &"_1_cal4_e = 0, pro"& qGestion &"_1_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_1_cal1_e = 0, pro"& qGestion &"_1_cal2_e = 0, pro"& qGestion &"_1_cal3_e = "& var14 &", pro"& qGestion &"_1_cal4_e = 0, pro"& qGestion &"_1_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_1_cal1_e = 0, pro"& qGestion &"_1_cal2_e = 0, pro"& qGestion &"_1_cal3_e = 0, pro"& qGestion &"_1_cal4_e = "& var14 &", pro"& qGestion &"_1_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_1_cal1_e = 0, pro"& qGestion &"_1_cal2_e = 0, pro"& qGestion &"_1_cal3_e = 0, pro"& qGestion &"_1_cal4_e = 0, pro"& qGestion &"_1_cal5_e = "& var14 &""
    End Select
    
    Select Case var15
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_2_cal1_e = "& var15 &", pro"& qGestion &"_2_cal2_e = 0, pro"& qGestion &"_2_cal3_e = 0, pro"& qGestion &"_2_cal4_e = 0, pro"& qGestion &"_2_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_2_cal1_e = 0, pro"& qGestion &"_2_cal2_e = "& var15 &", pro"& qGestion &"_2_cal3_e = 0, pro"& qGestion &"_2_cal4_e = 0, pro"& qGestion &"_2_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_2_cal1_e = 0, pro"& qGestion &"_2_cal2_e = 0, pro"& qGestion &"_2_cal3_e = "& var15 &", pro"& qGestion &"_2_cal4_e = 0, pro"& qGestion &"_2_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_2_cal1_e = 0, pro"& qGestion &"_2_cal2_e = 0, pro"& qGestion &"_2_cal3_e = 0, pro"& qGestion &"_2_cal4_e = "& var15 &", pro"& qGestion &"_2_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_2_cal1_e = 0, pro"& qGestion &"_2_cal2_e = 0, pro"& qGestion &"_2_cal3_e = 0, pro"& qGestion &"_2_cal4_e = 0, pro"& qGestion &"_2_cal5_e = "& var15 &""
    End Select
    
    Select Case var16
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_3_cal1_e = "& var16 &", pro"& qGestion &"_3_cal2_e = 0, pro"& qGestion &"_3_cal3_e = 0, pro"& qGestion &"_3_cal4_e = 0, pro"& qGestion &"_3_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_3_cal1_e = 0, pro"& qGestion &"_3_cal2_e = "& var16 &", pro"& qGestion &"_3_cal3_e = 0, pro"& qGestion &"_3_cal4_e = 0, pro"& qGestion &"_3_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_3_cal1_e = 0, pro"& qGestion &"_3_cal2_e = 0, pro"& qGestion &"_3_cal3_e = "& var16 &", pro"& qGestion &"_3_cal4_e = 0, pro"& qGestion &"_3_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_3_cal1_e = 0, pro"& qGestion &"_3_cal2_e = 0, pro"& qGestion &"_3_cal3_e = 0, pro"& qGestion &"_3_cal4_e = "& var16 &", pro"& qGestion &"_3_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_3_cal1_e = 0, pro"& qGestion &"_3_cal2_e = 0, pro"& qGestion &"_3_cal3_e = 0, pro"& qGestion &"_3_cal4_e = 0, pro"& qGestion &"_3_cal5_e = "& var16 &""
    End Select
    
    Select Case var17
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_4_cal1_e = "& var17 &", pro"& qGestion &"_4_cal2_e = 0, pro"& qGestion &"_4_cal3_e = 0, pro"& qGestion &"_4_cal4_e = 0, pro"& qGestion &"_4_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_4_cal1_e = 0, pro"& qGestion &"_4_cal2_e = "& var17 &", pro"& qGestion &"_4_cal3_e = 0, pro"& qGestion &"_4_cal4_e = 0, pro"& qGestion &"_4_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_4_cal1_e = 0, pro"& qGestion &"_4_cal2_e = 0, pro"& qGestion &"_4_cal3_e = "& var17 &", pro"& qGestion &"_4_cal4_e = 0, pro"& qGestion &"_4_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_4_cal1_e = 0, pro"& qGestion &"_4_cal2_e = 0, pro"& qGestion &"_4_cal3_e = 0, pro"& qGestion &"_4_cal4_e = "& var17 &", pro"& qGestion &"_4_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_4_cal1_e = 0, pro"& qGestion &"_4_cal2_e = 0, pro"& qGestion &"_4_cal3_e = 0, pro"& qGestion &"_4_cal4_e = 0, pro"& qGestion &"_4_cal5_e = "& var17 &""
    End Select
    
    Select Case var18
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_5_cal1_e = "& var18 &", pro"& qGestion &"_5_cal2_e = 0, pro"& qGestion &"_5_cal3_e = 0, pro"& qGestion &"_5_cal4_e = 0, pro"& qGestion &"_5_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_5_cal1_e = 0, pro"& qGestion &"_5_cal2_e = "& var18 &", pro"& qGestion &"_5_cal3_e = 0, pro"& qGestion &"_5_cal4_e = 0, pro"& qGestion &"_5_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_5_cal1_e = 0, pro"& qGestion &"_5_cal2_e = 0, pro"& qGestion &"_5_cal3_e = "& var18 &", pro"& qGestion &"_5_cal4_e = 0, pro"& qGestion &"_5_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_5_cal1_e = 0, pro"& qGestion &"_5_cal2_e = 0, pro"& qGestion &"_5_cal3_e = 0, pro"& qGestion &"_5_cal4_e = "& var18 &", pro"& qGestion &"_5_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_5_cal1_e = 0, pro"& qGestion &"_5_cal2_e = 0, pro"& qGestion &"_5_cal3_e = 0, pro"& qGestion &"_5_cal4_e = 0, pro"& qGestion &"_5_cal5_e = "& var18 &""
    End Select
    
    Select Case var19
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_6_cal1_e = "& var19 &", pro"& qGestion &"_6_cal2_e = 0, pro"& qGestion &"_6_cal3_e = 0, pro"& qGestion &"_6_cal4_e = 0, pro"& qGestion &"_6_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_6_cal1_e = 0, pro"& qGestion &"_6_cal2_e = "& var19 &", pro"& qGestion &"_6_cal3_e = 0, pro"& qGestion &"_6_cal4_e = 0, pro"& qGestion &"_6_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_6_cal1_e = 0, pro"& qGestion &"_6_cal2_e = 0, pro"& qGestion &"_6_cal3_e = "& var19 &", pro"& qGestion &"_6_cal4_e = 0, pro"& qGestion &"_6_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_6_cal1_e = 0, pro"& qGestion &"_6_cal2_e = 0, pro"& qGestion &"_6_cal3_e = 0, pro"& qGestion &"_6_cal4_e = "& var19 &", pro"& qGestion &"_6_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_6_cal1_e = 0, pro"& qGestion &"_6_cal2_e = 0, pro"& qGestion &"_6_cal3_e = 0, pro"& qGestion &"_6_cal4_e = 0, pro"& qGestion &"_6_cal5_e = "& var19 &""
    End Select
    
    Select Case var20
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_7_cal1_e = "& var20 &", pro"& qGestion &"_7_cal2_e = 0, pro"& qGestion &"_7_cal3_e = 0, pro"& qGestion &"_7_cal4_e = 0, pro"& qGestion &"_7_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_7_cal1_e = 0, pro"& qGestion &"_7_cal2_e = "& var20 &", pro"& qGestion &"_7_cal3_e = 0, pro"& qGestion &"_7_cal4_e = 0, pro"& qGestion &"_7_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_7_cal1_e = 0, pro"& qGestion &"_7_cal2_e = 0, pro"& qGestion &"_7_cal3_e = "& var20 &", pro"& qGestion &"_7_cal4_e = 0, pro"& qGestion &"_7_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_7_cal1_e = 0, pro"& qGestion &"_7_cal2_e = 0, pro"& qGestion &"_7_cal3_e = 0, pro"& qGestion &"_7_cal4_e = "& var20 &", pro"& qGestion &"_7_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_7_cal1_e = 0, pro"& qGestion &"_7_cal2_e = 0, pro"& qGestion &"_7_cal3_e = 0, pro"& qGestion &"_7_cal4_e = 0, pro"& qGestion &"_7_cal5_e = "& var20 &""
    End Select
    
    Select Case var21
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_8_cal1_e = "& var21 &", pro"& qGestion &"_8_cal2_e = 0, pro"& qGestion &"_8_cal3_e = 0, pro"& qGestion &"_8_cal4_e = 0, pro"& qGestion &"_8_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_8_cal1_e = 0, pro"& qGestion &"_8_cal2_e = "& var21 &", pro"& qGestion &"_8_cal3_e = 0, pro"& qGestion &"_8_cal4_e = 0, pro"& qGestion &"_8_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_8_cal1_e = 0, pro"& qGestion &"_8_cal2_e = 0, pro"& qGestion &"_8_cal3_e = "& var21 &", pro"& qGestion &"_8_cal4_e = 0, pro"& qGestion &"_8_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_8_cal1_e = 0, pro"& qGestion &"_8_cal2_e = 0, pro"& qGestion &"_8_cal3_e = 0, pro"& qGestion &"_8_cal4_e = "& var21 &", pro"& qGestion &"_8_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_8_cal1_e = 0, pro"& qGestion &"_8_cal2_e = 0, pro"& qGestion &"_8_cal3_e = 0, pro"& qGestion &"_8_cal4_e = 0, pro"& qGestion &"_8_cal5_e = "& var21 &""
    End Select
    
    Select Case var22
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_9_cal1_e = "& var22 &", pro"& qGestion &"_9_cal2_e = 0, pro"& qGestion &"_9_cal3_e = 0, pro"& qGestion &"_9_cal4_e = 0, pro"& qGestion &"_9_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_9_cal1_e = 0, pro"& qGestion &"_9_cal2_e = "& var22 &", pro"& qGestion &"_9_cal3_e = 0, pro"& qGestion &"_9_cal4_e = 0, pro"& qGestion &"_9_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_9_cal1_e = 0, pro"& qGestion &"_9_cal2_e = 0, pro"& qGestion &"_9_cal3_e = "& var22 &", pro"& qGestion &"_9_cal4_e = 0, pro"& qGestion &"_9_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_9_cal1_e = 0, pro"& qGestion &"_9_cal2_e = 0, pro"& qGestion &"_9_cal3_e = 0, pro"& qGestion &"_9_cal4_e = "& var22 &", pro"& qGestion &"_9_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_9_cal1_e = 0, pro"& qGestion &"_9_cal2_e = 0, pro"& qGestion &"_9_cal3_e = 0, pro"& qGestion &"_9_cal4_e = 0, pro"& qGestion &"_9_cal5_e = "& var22 &""
    End Select
    
    Select Case var23
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_10_cal1_e = "& var23 &", pro"& qGestion &"_10_cal2_e = 0, pro"& qGestion &"_10_cal3_e = 0, pro"& qGestion &"_10_cal4_e = 0, pro"& qGestion &"_10_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_10_cal1_e = 0, pro"& qGestion &"_10_cal2_e = "& var23 &", pro"& qGestion &"_10_cal3_e = 0, pro"& qGestion &"_10_cal4_e = 0, pro"& qGestion &"_10_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_10_cal1_e = 0, pro"& qGestion &"_10_cal2_e = 0, pro"& qGestion &"_10_cal3_e = "& var23 &", pro"& qGestion &"_10_cal4_e = 0, pro"& qGestion &"_10_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_10_cal1_e = 0, pro"& qGestion &"_10_cal2_e = 0, pro"& qGestion &"_10_cal3_e = 0, pro"& qGestion &"_10_cal4_e = "& var23 &", pro"& qGestion &"_10_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_10_cal1_e = 0, pro"& qGestion &"_10_cal2_e = 0, pro"& qGestion &"_10_cal3_e = 0, pro"& qGestion &"_10_cal4_e = 0, pro"& qGestion &"_10_cal5_e = "& var23 &""
    End Select
    
    Select Case var24
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_11_cal1_e = "& var24 &", pro"& qGestion &"_11_cal2_e = 0, pro"& qGestion &"_11_cal3_e = 0, pro"& qGestion &"_11_cal4_e = 0, pro"& qGestion &"_11_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_11_cal1_e = 0, pro"& qGestion &"_11_cal2_e = "& var24 &", pro"& qGestion &"_11_cal3_e = 0, pro"& qGestion &"_11_cal4_e = 0, pro"& qGestion &"_11_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_11_cal1_e = 0, pro"& qGestion &"_11_cal2_e = 0, pro"& qGestion &"_11_cal3_e = "& var24 &", pro"& qGestion &"_11_cal4_e = 0, pro"& qGestion &"_11_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_11_cal1_e = 0, pro"& qGestion &"_11_cal2_e = 0, pro"& qGestion &"_11_cal3_e = 0, pro"& qGestion &"_11_cal4_e = "& var24 &", pro"& qGestion &"_11_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_11_cal1_e = 0, pro"& qGestion &"_11_cal2_e = 0, pro"& qGestion &"_11_cal3_e = 0, pro"& qGestion &"_11_cal4_e = 0, pro"& qGestion &"_11_cal5_e = "& var24 &""
    End Select
    
    Select Case var25
      Case 1 : sSQLplus = sSQLplus & " pro"& qGestion &"_12_cal1_e = "& var25 &", pro"& qGestion &"_12_cal2_e = 0, pro"& qGestion &"_12_cal3_e = 0, pro"& qGestion &"_12_cal4_e = 0, pro"& qGestion &"_12_cal5_e = 0"
      Case 2 : sSQLplus = sSQLplus & " pro"& qGestion &"_12_cal1_e = 0, pro"& qGestion &"_12_cal2_e = "& var25 &", pro"& qGestion &"_12_cal3_e = 0, pro"& qGestion &"_12_cal4_e = 0, pro"& qGestion &"_12_cal5_e = 0"
      Case 3 : sSQLplus = sSQLplus & " pro"& qGestion &"_12_cal1_e = 0, pro"& qGestion &"_12_cal2_e = 0, pro"& qGestion &"_12_cal3_e = "& var25 &", pro"& qGestion &"_12_cal4_e = 0, pro"& qGestion &"_12_cal5_e = 0"
      Case 4 : sSQLplus = sSQLplus & " pro"& qGestion &"_12_cal1_e = 0, pro"& qGestion &"_12_cal2_e = 0, pro"& qGestion &"_12_cal3_e = 0, pro"& qGestion &"_12_cal4_e = "& var25 &", pro"& qGestion &"_12_cal5_e = 0"
      Case 5 : sSQLplus = sSQLplus & " pro"& qGestion &"_12_cal1_e = 0, pro"& qGestion &"_12_cal2_e = 0, pro"& qGestion &"_12_cal3_e = 0, pro"& qGestion &"_12_cal4_e = 0, pro"& qGestion &"_12_cal5_e = "& var25 &""
    End Select
  End If
  
    sSQL = ""
    sSQL = sSQL & " UPDATE Procesos"& qGestion &" SET"
  sSQL = sSQL & sSQLPlus
  sSQL = sSQL & " WHERE (pro"& qGestion &"_id = "& IDRegistro &")"
  'Response.Write(sSQL)
  'Response.End
    Resultado = ExecuteBD(sSQL, 1)
                
    '/ verificar si se modifico correctamente
    If Trim(Resultado) = "Proceso concluido" Then
    response.Cookies("poa_cookies_llave_mensaje") 	= "DONE"
    response.Cookies("poa_cookies_ruta_siguiente") 	= "Actividades.asp"
    response.Cookies("poa_cookies_texto_mensaje") 	= "Se ha registrado la Ejecuci&oacute;n satisfactoriamente."
        response.redirect "Mensaje.asp" 
    else
        response.Cookies("poa_cookies_llave_mensaje") 	= "NONE"
    response.Cookies("poa_cookies_ruta_siguiente") 	= "Actividades.asp"
    response.Cookies("poa_cookies_texto_mensaje") 	= "Existe un error al intentar realizar la Ejecuci&oacute;n, verifique e int&eacute;ntelo nuevamente."
    response.redirect "Mensaje.asp"
    End If

end if
  
%>

<%
    '// Recuperar el registro 
     
      ''response.Write(qMesGestion)

if WhatToDo = "cmdcooper" then
    qPorcentaje = Request.Form("Porcen")
    qNuri = Request.Form("nuri")
    qDetalle = Request.Form("detalle")
     qMesGestion = Request.Form("MesGestion")   
  
      sSQL = ""
      sSQL = sSQL & " INSERT INTO InforActividad(InfActividadGestion, InfActividadRegistroID, InfActividadFechaPres,"
      sSQL = sSQL & " InfActividadPorcentajePres, InfActividadNuri, InfActividadDescrip,InfActividadFechaApro,InfActividadPorsentajeAprob,InfActividadObs,InfActividadMes)"
      sSQL = sSQL & " VALUES ("& qGestion &" ,"& qRegistro &",GetDate(),'"& qPorcentaje &"','"& qNuri &"','"& qDetalle &"',GetDate(),'0',' ','"& qMesGestion &"')"
	  Resultado = ExecuteBD(sSQL, 1)    
      WhereToGo = 0

  response.Cookies("poa_cookies_llave_mensaje") 	= "DONE"
    response.Cookies("poa_cookies_ruta_siguiente") 	= "ProcesosElaborador2.asp?WhatToDo=cmdExecute&qRegistro=" & qRegistro
    response.Cookies("poa_cookies_texto_mensaje") 	= "Se ha registrado el medio de verificaci&oacute;n."
        response.redirect "Mensaje.asp" 
end if
  
    
    
     %>
<%
'if WhatToDo = "cmdcooper1" then
'    cMes = Request.Form("Cinco")
    qMesGestion = Request.Form("MesGestion")
	
'end if  
%>
<!-- Ejecutar Registro -->
<% if WhereToGo = 4 then %>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td class="TituloSeccion">Actividades (Ejecutar)</td>
      </tr>
  <tr>

 
    <td align=right><a href="Actividades.asp? WhatToDo=<%=valor%>"><img src="Imagenes/Volver.png" width="16" height="16" border="0" title="Volver a Actividades"></a></td>
  </tr>
  <tr>
    <td>
  <form action="ProcesosElaborador2.asp?WhatToDo=cmdExecuteSave&qCarpeta=<%=qCarpeta%>&qObjetivo=<%=qObjetivo%>&qRegistro=<%=qRegistro%>" method="post" name="frmExe">
    <input name="IDRegistro" type="hidden" value="<%=var0%>">
    <table width="90%" border="0" cellspacing="1" cellpadding="3" align="center">
      <colgroup>
        <col style="width:10%" />
        <col style="width:40%" />
        <col style="width:10%" />
        <col style="width:40%" />
      </colgroup>
        <tr class="TablaFila1">
          <td><b>C&oacute;digo</b>:</td>
          <td><%=var2%></td>
          <td><b>Nombre de la actividad:</b></td>
          <td><%=var3 %></td>
        </tr>
        <tr class="TablaFila2">
          <td><b>Objetivo:</b></td>
          <td><%=var4 %></td> 
          <td><b>Tipo de Indicador:</b></td>
          <td>
            <%
  
      ComboConstruido = "<select name=""var6"" class=""TextoTam7"" onChange=""ShowTipoIndicador(this.form);"" disabled><option value="""">-- Seleccione --</option>"
      sSQL = ""
      sSQL = sSQL & " SELECT indi_id, indi_descripcion"
      sSQL = sSQL & " FROM Indicador"
      sSQL = sSQL & " WHERE (indi_estado = 1) AND indi_id=" & var5 
      MatrizCombo = MatrixBD(sSQL, 1)
      response.write MatrizCombo(1, 0)
    %>
          </td>
        </tr>
        <tr class="TablaFila1">
          <td><b>Indicador:</b></td>
          <td><%=var6 %></td> 
          <td><b>F&oacute;rmula:</b></td>
          <td><%=var7 %></td>
        </tr>
        <tr class="TablaFila2">
          <td><b>Linea Base:</b></td>
          <td><%=var8 %></td> 
          <td><b>Meta:</b></td>
          <td><%=var9 %></td>
        </tr>
        <tr class="TablaFila1">
          <td><b>Fuente de verificaci&oacute;n:</b></td>
          <td><%=var10 %></td> 
          <td><b>Linea Base:</b></td>
          <td>&nbsp;</td>
        </tr>
        </table>
  
     <%
   'verificar que mes es posible ejecutar
   EG = Session("auth_granted_poa_mes_otro")
   %>
   <%
   If CInt(var5) = 1 Then
    vAbs = "block"
   Else
    vAbs = "none"
   End If
   %>
    <div style="width:100%; height: 40px;">
        <div id="mensajeMedios"  class="alert alert-warning" style="display: none; text-align: center; padding:10px">
        Ingrese al menos un Medio de Verificaci&oacute;n para poder registrar los datos de ejecuci&oacute;n.
        </div>
      </div>

     <div id="elemento1" style="display:<%=vAbs%>">
     <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center"  >
         
      <tr>
       
    <td width="100%" valign="middle">
        
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-striped"> 

              <tr class="warning">
                <th align="center">&nbsp;</th>
                <th align="center">Ene. </th>
                <th align="center">Feb.</th>
                <th align="center">Mar.</th>
                <th align="center">Abr.</th>
                <th align="center">May.</th>
                <th align="center">Jun.</th>
              </tr>
              <tr>
                
                <td align="center">P:</td>
                
                <td align="left"><input type="text" class="TextoTam60" value="<%=var19%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var20%>" disabled></td>
                <td align="lelft"><input type="text" class="TextoTam60" value="<%=var21%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var22%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var23%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var24%>"  disabled></td>
              </tr>
              
              
              <% If EG = 99 Then %>
              <tr>
                <td align="center">E:</td>
                <td align="center"><input name="var14a" type="text" class="TextoTam60 calcEjecucion" value="<%=var31%>" mes="1"></td>                 
                <td align="center"><input name="var15a" type="text" class="TextoTam60 calcEjecucion" value="<%=var32%>" mes="2"></td>
                <td align="center"><input name="var16a" type="text" class="TextoTam60 calcEjecucion" value="<%=var33%>" mes="3"></td>
                <td align="center"><input name="var17a" type="text" class="TextoTam60 calcEjecucion" value="<%=var34%>" mes="4"></td>
                <td align="center"><input name="var18a" type="text" class="TextoTam60 calcEjecucion" value="<%=var35%>" mes="5"></td>
                <td align="center"><input name="var19a" type="text" class="TextoTam60 calcEjecucion" value="<%=var36%>" mes="6"></td>
              </tr>
              <% Else %>
              <tr>
                <td align="center">E:</td>
                <td align="left"><% If 1 = 1 Then %><input name="var14a" type="text" class="TextoTam60 calcEjecucion" value="<%=var31%>" mes="1"><% Else %>
                <input name="var14a" type="text" class="TextoTam60" value="<%=var31%>" readonly><% End If %>                     
                <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="1">
                    <span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span>
                </a> 
                </td>

                <td align="left"><% If 2 = 2 Then %><input name="var15a" type="text" class="TextoTam60 calcEjecucion" value="<%=var32%>" mes="2"><% Else %><input name="var15a" type="text" class="TextoTam60" value="<%=var32%>" readonly><% End If %>
                     <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="2"> 
                    <span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span>                                      
                </a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->

                </td>
                </td>
                <td align="left"><% If 3 = 3 Then %><input name="var16a" type="text" class="TextoTam60 calcEjecucion" value="<%=var33%>" mes="3"><% Else %><input name="var16a" type="text" class="TextoTam60" value="<%=var33%>" readonly><% End If %>
                     <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="3">
                         <span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span>
                     </a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" >pan class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->

                </td>
                </td>
                <td align="left"><% If 4 = 4 Then %><input name="var17a" type="text" class="TextoTam60 calcEjecucion" value="<%=var34%>" mes="4"><% Else %><input name="var17a" type="text" class="TextoTam60" value="<%=var34%>" readonly><% End If %>
                     <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="4">
                         <span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span>

                     </a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->

                </td>
                </td>
                <td align="left"><% If 5 = 5 Then %><input name="var18a" type="text" class="TextoTam60 calcEjecucion" value="<%=var35%>" mes="5"><% Else %><input name="var18a" type="text" class="TextoTam60" value="<%=var35%>" readonly><% End If %>
                     <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="5">
                         <span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span></a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->

                </td>
                </td>
                <td align="left"><% If 6 = 6 Then %><input name="var19a" type="text" class="TextoTam60 calcEjecucion" value="<%=var36%>" mes="6"><% Else %><input name="var19a" type="text" class="TextoTam60" value="<%=var36%>" readonly><% End If %>
                     <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="6"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span></a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a></td>-->
                </td>
              </tr>
              <% End If %>
              <tr class="success">
                <th align="center">&nbsp;</th>
                <th align="center">Jul.</th>
                <th align="center">Ago.</th>
                <th align="center">Sep.</th>
                <th align="center">Oct.</th>
                <th align="center">Nov.</th>
                <th align="center">Dic.</th>

              </tr>
              <tr>
                <td align="center">P:</td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var25%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var26%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var27%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var28%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var29%>" disabled></td>
                <td align="left"><input type="text" class="TextoTam60" value="<%=var30%>" disabled></td>
                            
              </tr>
        <tr>
              
              <% If EG = 99 Then %>
              <tr>
                <td align="center">E:</td>
                <td align="center"><input name="var20a" type="text" class="TextoTam60 calcEjecucion" value="<%=var37%>" mes="7"></td>
                <td align="center"><input name="var21a" type="text" class="TextoTam60 calcEjecucion" value="<%=var38%>" mes="8"></td>
                <td align="center"><input name="var22a" type="text" class="TextoTam60 calcEjecucion" value="<%=var39%>" mes="9"></td>
                <td align="center"><input name="var23a" type="text" class="TextoTam60 calcEjecucion" value="<%=var40%>" mes="10"></td>
                <td align="center"><input name="var24a" type="text" class="TextoTam60 calcEjecucion" value="<%=var41%>" mes="11"></td>
                <td align="center"><input name="var25a" type="text" class="TextoTam60 calcEjecucion" value="<%=var42%>" mes="12"></td>
              </tr>
              <% Else %>
              <tr>
                <td align="center">E:</td>
                <td align="left"><% If EG = 7 Then %><input name="var20a" type="text" class="TextoTam60 calcEjecucion" value="<%=var37%>" mes="7"><% Else %><input name="var20a" type="text" class="TextoTam60" value="<%=var37%>" readonly><% End If %>
                    <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="7">
                        <span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span></a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->
                </td>
                <td align="left"><% If EG = 8 Then %><input name="var21a" type="text" class="TextoTam60 calcEjecucion" value="<%=var38%>" mes="8"><% Else %><input name="var21a" type="text" class="TextoTam60" value="<%=var38%>" readonly><% End If %>
                    <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="8">   <span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span>

                    </a>
                     
               <!-- <a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->
                </td>
                <td align="left"><% If EG = 9 Then %><input name="var22a" type="text" class="TextoTam60 calcEjecucion" value="<%=var39%>" mes="9"><% Else %><input name="var22a" type="text" class="TextoTam60" value="<%=var39%>" readonly><% End If %>
                    <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="9"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span></a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->
                </td>
                <td align="left"><% If EG = 10 Then %><input name="var23a" type="text" class="TextoTam60 calcEjecucion" value="<%=var40%>" mes="10"><% Else %><input name="var23a" type="text" class="TextoTam60" value="<%=var40%>" readonly><% End If %>
                    <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="10"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span></a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->
                </td>
                <td align="left"><% If EG = 11 Then %><input name="var24a" type="text" class="TextoTam60 calcEjecucion" value="<%=var41%>" mes="11"><% Else %><input name="var24a" type="text" class="TextoTam60" value="<%=var41%>" readonly><% End If %>
                    <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="11"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span></a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->
                </td>
                <td align="left"><% If EG = 12 Then %><input name="var25a" type="text" class="TextoTam60 calcEjecucion" value="<%=var42%>" mes="12"><% Else %><input name="var25a" type="text" class="TextoTam60" value="<%=var42%>" readonly><% End If %>
                    <a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="12"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"> </span></a> 
                <!--<a class="btn btn-default btn-xs btn btn-primary" ><span class="glyphicon glyphicon-list" title="Ver Detalle", rel="tooltipLef"> </span></a>-->
                </td>
              </tr>
              <% End If %>
            </table>
        
        </td>
      </tr>
     </table>
     </div>
     <%
   If CInt(var5) = 2 Then
    vRel = "block"
   Else
    vRel = "none"
   End If
   %>
     <div id="elemento2" style="display:<%=vRel%>">
     <table width="80%" border="0" cellspacing="1" cellpadding="1" align="center" >
      <tr>
    <td width="60%" valign="middle">
      
      
      <% 
      If var238 = 0 Then DenominadorLiteral = "Variable" 
      If var238 = 1 Then DenominadorLiteral = "Fijo" 
      %>
      <div style="padding:5px">
        <!--@Numerador : <%=var236%><br>
        Denominador : <%=var235%> (<%=DenominadorLiteral%>)<br>-->
        Mes activo : <div class="mesActual" style="width:20px; height:20px; border:solid 1px #dddddd; display:inline">&nbsp;&nbsp;&nbsp;&nbsp;</div>
      </div>
      <script type="text/javascript">
        var tipoDen = <%= var238%>;
      </script>
      

      <table id="gridEjecucionRelativo" class="table table-bordered">
        <colgroup>
          <col style="" />
          <col id="col1" class="<% IF EG = 1 THEN Response.Write("mesActual") END IF %>" />
          <col id="col2" class="<% IF EG = 2 THEN Response.Write("mesActual") END IF %>" />
          <col id="col3" class="<% IF EG = 3 THEN Response.Write("mesActual") END IF %>" />  <!--style="background-color:#fcf8e3;"-->
          <col id="col4" class="<% IF EG = 4 THEN Response.Write("mesActual") END IF %>" />
          <col id="col5" class="<% IF EG = 5 THEN Response.Write("mesActual") END IF %>" />
          <col id="col6" class="<% IF EG = 6 THEN Response.Write("mesActual") END IF %>" />
          <col id="col7" class="<% IF EG = 7 THEN Response.Write("mesActual") END IF %>" />
          <col id="col8" class="<% IF EG = 8 THEN Response.Write("mesActual") END IF %>" />
          <col id="col9" class="<% IF EG = 9 THEN Response.Write("mesActual") END IF %>" />
          <col id="col10" class="<% IF EG = 10 THEN Response.Write("mesActual") END IF %>" />
          <col id="col11" class="<% IF EG = 11 THEN Response.Write("mesActual") END IF %>" />
          <col id="col12" class="<% IF EG = 12 THEN Response.Write("mesActual") END IF %>" />
        </colgroup>
        
        <tr>
          <th>&nbsp;</th>
          <th>Ene</th>
          <th>Feb</th>
          <th>Mar</th>
          <th>Abr</th>
          <th>May</th>
          <th>Jun</th>
          <th>Jul</th>
          <th>Ago</th>
          <th>Sep</th>
          <th>Oct</th>
          <th>Nov</th>
          <th>Dic</th>
        </tr>
          

        <!--@<tr>
          <td><b>Numerador</b></td>
          <td><input id="num1" mes="1" name="var14r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var211%>" size="20" <% IF EG <> 1 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num2" mes="2" name="var15r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var212%>" size="20" <% IF EG <> 2 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num3" mes="3" name="var16r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var213%>" size="20" <% IF EG <> 3 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num4" mes="4" name="var17r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var214%>" size="20" <% IF EG <> 4 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num5" mes="5" name="var18r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var215%>" size="20" <% IF EG <> 5 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num6" mes="6" name="var19r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var216%>" size="20" <% IF EG <> 6 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num7" mes="7" name="var20r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var217%>" size="20" <% IF EG <> 7 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num8" mes="8"  name="var21r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var218%>" size="20" <% IF EG <> 8 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num9" mes="9"  name="var22r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var219%>" size="20" <% IF EG <> 9 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num10" mes="10"  name="var23r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var220%>" size="20" <% IF EG <> 10 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num11" mes="11"  name="var24r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var221%>" size="20" <% IF EG <> 11 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="num12" mes="12"  name="var25r2" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var222%>" size="20" <% IF EG <> 12 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>

        </tr>

        <tr>
          <td><b>Denominador</b></td>
          <td><input id="den1" mes="1"  name="var14r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var199%>" size="20" <% IF EG <> 1 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den2" mes="2"  name="var15r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var200%>" size="20" <% IF EG <> 2 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den3" mes="3"  name="var16r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var201%>" size="20" <% IF EG <> 3 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den4" mes="4"  name="var17r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var202%>" size="20" <% IF EG <> 4 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den5" mes="5"  name="var18r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var203%>" size="20" <% IF EG <> 5 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den6" mes="6"  name="var19r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var204%>" size="20" <% IF EG <> 6 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den7" mes="7"  name="var20r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var205%>" size="20" <% IF EG <> 7 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den8" mes="8"  name="var21r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var206%>" size="20" <% IF EG <> 8 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den9" mes="9"  name="var22r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var207%>" size="20" <% IF EG <> 9 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den10" mes="10"  name="var23r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var208%>" size="20" <% IF EG <> 10 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den11" mes="11"  name="var24r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var209%>" size="20" <% IF EG <> 11 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
          <td><input id="den12" mes="12" name="var25r1" type="text" class="inputGridEjecucion calcEjecucion" value="<%=var210%>" size="20" <% IF EG <> 12 AND EG <> 99 THEN Response.Write("readonly") END IF %>></td>
        </tr>

        <tr>
          <td><b>Resultado de Ejecuci&oacute;n</b></td>
          <td><span id="resEjecutado1"><%=formatRelativo(var211, var199, var238) %></span></td>
          <td><span id="resEjecutado2"><%=formatRelativo(var212, var200, var238) %></span></td>
          <td><span id="resEjecutado3"><%=formatRelativo(var213, var201, var238) %></span></td>
          <td><span id="resEjecutado4"><%=formatRelativo(var214, var202, var238) %></span></td>
          <td><span id="resEjecutado5"><%=formatRelativo(var215, var203, var238) %></span></td>
          <td><span id="resEjecutado6"><%=formatRelativo(var216, var204, var238) %></span></td>
          <td><span id="resEjecutado7"><%=formatRelativo(var217, var205, var238) %></span></td>
          <td><span id="resEjecutado8"><%=formatRelativo(var218, var206, var238) %></span></td>
          <td><span id="resEjecutado9"><%=formatRelativo(var219, var207, var238) %></span></td>
          <td><span id="resEjecutado10"><%=formatRelativo(var220, var208, var238) %></span></td>
          <td><span id="resEjecutado11"><%=formatRelativo(var221, var209, var238) %></span></td>
          <td><span id="resEjecutado12"><%=formatRelativo(var222, var210, var238) %></span></td>
        </tr>-->

        <tr>
          <td><b>Ejecuci&oacute;n</b></td>
          <td><input id="ejecucion_porcentaje_aux_1" mes="1"  name="ejecucion_porcentaje_aux_1" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_1%>" maxlength="5" <% IF 1 <> 1 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_2" mes="2"  name="ejecucion_porcentaje_aux_2" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_2%>" maxlength="5" <% IF 2 <> 2 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_3" mes="3"  name="ejecucion_porcentaje_aux_3" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_3%>" maxlength="5" <% IF 3 <> 3 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_4" mes="4"  name="ejecucion_porcentaje_aux_4" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_4%>" maxlength="5" <% IF 4 <> 4 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_5" mes="5"  name="ejecucion_porcentaje_aux_5" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_5%>" maxlength="5" <% IF 5 <> 5 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_6" mes="6"  name="ejecucion_porcentaje_aux_6" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_6%>" maxlength="5" <% IF 6 <> 6 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_7" mes="7"  name="ejecucion_porcentaje_aux_7" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_7%>" maxlength="5" <% IF EG <> 7 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_8" mes="8"  name="ejecucion_porcentaje_aux_8" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_8%>" maxlength="5" <% IF EG <> 8 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_9" mes="9"  name="ejecucion_porcentaje_aux_9" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_9%>" maxlength="5" <% IF EG <> 9 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_10" mes="10"  name="ejecucion_porcentaje_aux_10" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_10%>" maxlength="5" <% IF EG <> 10 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_11" mes="11"  name="ejecucion_porcentaje_aux_11" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_11%>" maxlength="5" <% IF EG <> 11 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
          <td><input id="ejecucion_porcentaje_aux_12" mes="12" name="ejecucion_porcentaje_aux_12" type="text" class="inputGridEjecucionAux calcEjecucion" value="<%=ejecucion_porcentaje_aux_12%>" maxlength="5" <% IF EG <> 12 AND EG <> 99 THEN Response.Write("readonly") END IF %>>%</td>
        </tr>

        <tr>
          <td><b>Programado</b></td>
          <td><%=var163 %>%</td>
          <td><%=var164 %>%</td>
          <td><%=var165 %>%</td>
          <td><%=var166 %>%</td>
          <td><%=var167 %>%</td>
          <td><%=var168 %>%</td>
          <td><%=var169 %>%</td>
          <td><%=var170 %>%</td>
          <td><%=var171 %>%</td>
          <td><%=var172 %>%</td>
          <td><%=var173 %>%</td>
          <td><%=var174 %>%</td>
        </tr>

        <tr>
          <td><b>Medios de Verificaci&oacute;n</b></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="1"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="2"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="3"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="4"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="5"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="6"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="7"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="8"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="9"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="10"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="11"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
          <td><a class="btn btn-default btn-xs  btn btn-warning" data-toggle="modal" data-target="#uno" mes="12"><span class="glyphicon glyphicon-plus" title="Insertar", rel="tooltipLef"></span></a></td>
        </tr>

      </table>
        
            
        
        </td>
      </tr>
     </table>
     </div>
     <%
   If CInt(var5) = 3 Then
    vCal = "block"
   Else
    vCal = "none"
   End If
   %>
     <div id="elemento3" style="display:<%=vCal%>">
     <table width="75%" border="0" cellspacing="1" cellpadding="1" align="center">
      <tr>
        <td width="40%" class="EncabezadoTabla" valign="middle">Ejecuci&oacute;n</td>
    <td width="60%" valign="middle">
        
            <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
              <tr>
                <td align="center">Ene.</td>
                <td align="center">Feb.</td>
                <td align="center">Mar.</td>
                <td align="center">Abr.</td>
                <td align="center">May.</td>
                <td align="center">Jun.</td>
              </tr>
              <tr>
                <td align="center">
                <%
        calidad1E = 0
        If CInt(var103) <> 0 Then calidad1E = CInt(var103)
        If CInt(var115) <> 0 Then calidad1E = CInt(var115)
        If CInt(var127) <> 0 Then calidad1E = CInt(var127)
        If CInt(var139) <> 0 Then calidad1E = CInt(var139)
        If CInt(var151) <> 0 Then calidad1E = CInt(var151)
        %>
        <% If EG = 99 Then %>
        <input name="var14c" type="text" class="TextoTam6" value="<%=calidad1E%>">&nbsp;
        <select name="var14s" class="TextoTam5" onChange="AVvar14e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var103)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var115)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var127)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var139)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var151)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 1 Then %>
        <input name="var14c" type="text" class="TextoTam6" value="<%=calidad1E%>">&nbsp;
        <select name="var14s" class="TextoTam5" onChange="AVvar14e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var103)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var115)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var127)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var139)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var151)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var14c" type="text" class="TextoTam6" value="<%=calidad1E%>" readonly>&nbsp;
        <select name="var14s" class="TextoTam5" onChange="AVvar14e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var103)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var115)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var127)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var139)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var151)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad2E = 0
        If CInt(var104) <> 0 Then calidad2E = CInt(var104)
        If CInt(var116) <> 0 Then calidad2E = CInt(var116)
        If CInt(var128) <> 0 Then calidad2E = CInt(var128)
        If CInt(var140) <> 0 Then calidad2E = CInt(var140)
        If CInt(var152) <> 0 Then calidad2E = CInt(var152)
        %>
        <% If EG = 99 Then %>
        <input name="var15c" type="text" class="TextoTam6" value="<%=calidad2E%>">&nbsp;
        <select name="var15s" class="TextoTam5" onChange="AVvar15e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var104)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var116)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var128)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var140)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var152)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 2 Then %>
        <input name="var15c" type="text" class="TextoTam6" value="<%=calidad2E%>">&nbsp;
        <select name="var15s" class="TextoTam5" onChange="AVvar15e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var104)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var116)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var128)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var140)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var152)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var15c" type="text" class="TextoTam6" value="<%=calidad2E%>" readonly>&nbsp;
        <select name="var15s" class="TextoTam5" onChange="AVvar15e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var104)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var116)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var128)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var140)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var152)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad3E = 0
        If CInt(var105) <> 0 Then calidad3E = CInt(var105)
        If CInt(var117) <> 0 Then calidad3E = CInt(var117)
        If CInt(var129) <> 0 Then calidad3E = CInt(var129)
        If CInt(var141) <> 0 Then calidad3E = CInt(var141)
        If CInt(var153) <> 0 Then calidad3E = CInt(var153)
        %>
        <% If EG = 99 Then %>
        <input name="var16c" type="text" class="TextoTam6" value="<%=calidad3E%>">&nbsp;
        <select name="var16s" class="TextoTam5" onChange="AVvar16e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var105)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var117)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var129)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var141)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var153)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 3 Then %>
        <input name="var16c" type="text" class="TextoTam6" value="<%=calidad3E%>">&nbsp;
        <select name="var16s" class="TextoTam5" onChange="AVvar16e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var105)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var117)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var129)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var141)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var153)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var16c" type="text" class="TextoTam6" value="<%=calidad3E%>" readonly>&nbsp;
        <select name="var16s" class="TextoTam5" onChange="AVvar16e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var105)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var117)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var129)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var141)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var153)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad4E = 0
        If CInt(var106) <> 0 Then calidad4E = CInt(var106)
        If CInt(var118) <> 0 Then calidad4E = CInt(var118)
        If CInt(var130) <> 0 Then calidad4E = CInt(var130)
        If CInt(var142) <> 0 Then calidad4E = CInt(var142)
        If CInt(var154) <> 0 Then calidad4E = CInt(var154)
        %>
        <% If EG = 99 Then %>
        <input name="var17c" type="text" class="TextoTam6" value="<%=calidad4E%>">&nbsp;
        <select name="var17s" class="TextoTam5" onChange="AVvar17e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var106)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var118)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var130)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var142)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var154)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 4 Then %>
        <input name="var17c" type="text" class="TextoTam6" value="<%=calidad4E%>">&nbsp;
        <select name="var17s" class="TextoTam5" onChange="AVvar17e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var106)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var118)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var130)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var142)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var154)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var17c" type="text" class="TextoTam6" value="<%=calidad4E%>" readonly>&nbsp;
        <select name="var17s" class="TextoTam5" onChange="AVvar17e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var106)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var118)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var130)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var142)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var154)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad5E = 0
        If CInt(var107) <> 0 Then calidad5E = CInt(var107)
        If CInt(var119) <> 0 Then calidad5E = CInt(var119)
        If CInt(var131) <> 0 Then calidad5E = CInt(var131)
        If CInt(var143) <> 0 Then calidad5E = CInt(var143)
        If CInt(var155) <> 0 Then calidad5E = CInt(var155)
        %>
        <% If EG = 99 Then %>
        <input name="var18c" type="text" class="TextoTam6" value="<%=calidad5E%>">&nbsp;
        <select name="var18s" class="TextoTam5" onChange="AVvar18e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var107)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var119)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var131)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var143)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var155)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 5 Then %>
        <input name="var18c" type="text" class="TextoTam6" value="<%=calidad5E%>">&nbsp;
        <select name="var18s" class="TextoTam5" onChange="AVvar18e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var107)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var119)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var131)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var143)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var155)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var18c" type="text" class="TextoTam6" value="<%=calidad5E%>" readonly>&nbsp;
        <select name="var18s" class="TextoTam5" onChange="AVvar18e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var107)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var119)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var131)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var143)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var155)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad6E = 0
        If CInt(var108) <> 0 Then calidad6E = CInt(var108)
        If CInt(var120) <> 0 Then calidad6E = CInt(var120)
        If CInt(var132) <> 0 Then calidad6E = CInt(var132)
        If CInt(var144) <> 0 Then calidad6E = CInt(var144)
        If CInt(var156) <> 0 Then calidad6E = CInt(var156)
        %>
        <% If EG = 99 Then %>
        <input name="var19c" type="text" class="TextoTam6" value="<%=calidad6E%>">&nbsp;
        <select name="var19s" class="TextoTam5" onChange="AVvar19e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var108)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var120)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var132)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var144)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var156)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 6 Then %>
        <input name="var19c" type="text" class="TextoTam6" value="<%=calidad6E%>">&nbsp;
        <select name="var19s" class="TextoTam5" onChange="AVvar19e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var108)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var120)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var132)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var144)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var156)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var19c" type="text" class="TextoTam6" value="<%=calidad6E%>" readonly>&nbsp;
        <select name="var19s" class="TextoTam5" onChange="AVvar19e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var108)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var120)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var132)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var144)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var156)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
              </tr>
              <tr>
                <td align="center">Jul.</td>
                <td align="center">Ago.</td>
                <td align="center">Sep.</td>
                <td align="center">Oct.</td>
                <td align="center">Nov.</td>
                <td align="center">Dic.</td>
              </tr>
              <tr>
                <td align="center"><%
        calidad7E = 0
        If CInt(var109) <> 0 Then calidad7E = CInt(var109)
        If CInt(var121) <> 0 Then calidad7E = CInt(var121)
        If CInt(var133) <> 0 Then calidad7E = CInt(var133)
        If CInt(var145) <> 0 Then calidad7E = CInt(var145)
        If CInt(var157) <> 0 Then calidad7E = CInt(var157)
        %>
        <% If EG = 99 Then %>
        <input name="var20c" type="text" class="TextoTam6" value="<%=calidad7E%>">&nbsp;
        <select name="var20s" class="TextoTam5" onChange="AVvar20e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var109)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var121)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var133)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var145)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var157)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 7 Then %>
        <input name="var20c" type="text" class="TextoTam6" value="<%=calidad7E%>">&nbsp;
        <select name="var20s" class="TextoTam5" onChange="AVvar20e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var109)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var121)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var133)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var145)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var157)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var20c" type="text" class="TextoTam6" value="<%=calidad7E%>" readonly>&nbsp;
        <select name="var20s" class="TextoTam5" onChange="AVvar20e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var109)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var121)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var133)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var145)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var157)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad8E = 0
        If CInt(var110) <> 0 Then calidad8E = CInt(var110)
        If CInt(var122) <> 0 Then calidad8E = CInt(var122)
        If CInt(var134) <> 0 Then calidad8E = CInt(var134)
        If CInt(var146) <> 0 Then calidad8E = CInt(var146)
        If CInt(var158) <> 0 Then calidad8E = CInt(var158)
        %>
        <% If EG = 99 Then %>
        <input name="var21c" type="text" class="TextoTam6" value="<%=calidad8E%>">&nbsp;
        <select name="var21s" class="TextoTam5" onChange="AVvar21e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var110)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var122)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var134)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var146)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var158)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 8 Then %>
        <input name="var21c" type="text" class="TextoTam6" value="<%=calidad8E%>">&nbsp;
        <select name="var21s" class="TextoTam5" onChange="AVvar21e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var110)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var122)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var134)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var146)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var158)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var21c" type="text" class="TextoTam6" value="<%=calidad8E%>" readonly>&nbsp;
        <select name="var21s" class="TextoTam5" onChange="AVvar21e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var110)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var122)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var134)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var146)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var158)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad9E = 0
        If CInt(var111) <> 0 Then calidad9E = CInt(var111)
        If CInt(var123) <> 0 Then calidad9E = CInt(var123)
        If CInt(var135) <> 0 Then calidad9E = CInt(var135)
        If CInt(var147) <> 0 Then calidad9E = CInt(var147)
        If CInt(var159) <> 0 Then calidad9E = CInt(var159)
        %>
        <% If EG = 99 Then %>
        <input name="var22c" type="text" class="TextoTam6" value="<%=calidad9E%>">&nbsp;
        <select name="var22s" class="TextoTam5" onChange="AVvar22e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var111)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var123)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var135)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var147)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var159)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 9 Then %>
        <input name="var22c" type="text" class="TextoTam6" value="<%=calidad9E%>">&nbsp;
        <select name="var22s" class="TextoTam5" onChange="AVvar22e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var111)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var123)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var135)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var147)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var159)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var22c" type="text" class="TextoTam6" value="<%=calidad9E%>" readonly>&nbsp;
        <select name="var22s" class="TextoTam5" onChange="AVvar22e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var111)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var123)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var135)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var147)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var159)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad10E = 0
        If CInt(var112) <> 0 Then calidad10E = CInt(var112)
        If CInt(var124) <> 0 Then calidad10E = CInt(var124)
        If CInt(var136) <> 0 Then calidad10E = CInt(var136)
        If CInt(var148) <> 0 Then calidad10E = CInt(var148)
        If CInt(var160) <> 0 Then calidad10E = CInt(var160)
        %>
        <% If EG = 99 Then %>
        <input name="var23c" type="text" class="TextoTam6" value="<%=calidad10E%>">&nbsp;
        <select name="var23s" class="TextoTam5" onChange="AVvar23e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var112)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var124)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var136)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var148)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var160)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 10 Then %>
        <input name="var23c" type="text" class="TextoTam6" value="<%=calidad10E%>">&nbsp;
        <select name="var23s" class="TextoTam5" onChange="AVvar23e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var112)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var124)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var136)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var148)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var160)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var23c" type="text" class="TextoTam6" value="<%=calidad10E%>" readonly>&nbsp;
        <select name="var23s" class="TextoTam5" onChange="AVvar23e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var112)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var124)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var136)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var148)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var160)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad11E = 0
        If CInt(var113) <> 0 Then calidad11E = CInt(var113)
        If CInt(var125) <> 0 Then calidad11E = CInt(var125)
        If CInt(var137) <> 0 Then calidad11E = CInt(var137)
        If CInt(var149) <> 0 Then calidad11E = CInt(var149)
        If CInt(var161) <> 0 Then calidad11E = CInt(var161)
        %>
        <% If EG = 99 Then %>
        <input name="var24c" type="text" class="TextoTam6" value="<%=calidad11E%>">&nbsp;
        <select name="var24s" class="TextoTam5" onChange="AVvar24e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var113)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var125)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var137)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var149)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var161)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 11 Then %>
        <input name="var24c" type="text" class="TextoTam6" value="<%=calidad11E%>">&nbsp;
        <select name="var24s" class="TextoTam5" onChange="AVvar24e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var113)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var125)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var137)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var149)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var161)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var24c" type="text" class="TextoTam6" value="<%=calidad11E%>" readonly>&nbsp;
        <select name="var24s" class="TextoTam5" onChange="AVvar24e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var113)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var125)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var137)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var149)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var161)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
                
                <td align="center"><%
        calidad12E = 0
        If CInt(var114) <> 0 Then calidad12E = CInt(var114)
        If CInt(var126) <> 0 Then calidad12E = CInt(var126)
        If CInt(var138) <> 0 Then calidad12E = CInt(var138)
        If CInt(var150) <> 0 Then calidad12E = CInt(var150)
        If CInt(var162) <> 0 Then calidad12E = CInt(var162)
        %>
        <% If EG = 99 Then %>
        <input name="var25c" type="text" class="TextoTam6" value="<%=calidad12E%>">&nbsp;
        <select name="var25s" class="TextoTam5" onChange="AVvar25e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var114)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var126)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var138)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var150)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var162)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
    <% Else %>
    <% If EG = 12 Then %>
        <input name="var25c" type="text" class="TextoTam6" value="<%=calidad12E%>">&nbsp;
        <select name="var25s" class="TextoTam5" onChange="AVvar25e(this.form);">
        <option value="0">--Seleccione--</option>
        <%If CInt(var114)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var126)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var138)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var150)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var162)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% Else %>
        <input name="var25c" type="text" class="TextoTam6" value="<%=calidad12E%>" readonly>&nbsp;
        <select name="var25s" class="TextoTam5" onChange="AVvar25e(this.form);" disabled>
        <option value="0">--Seleccione--</option>
        <%If CInt(var114)=1 Then%><option value="1" selected>P&eacute;simo</option><%Else%><option value="1">P&eacute;simo</option><%End If%>
        <%If CInt(var126)=2 Then%><option value="2" selected >Malo</option><%Else%><option value="2">Malo</option><%End If%>
        <%If CInt(var138)=3 Then%><option value="3" selected>Regular</option><%Else%><option value="3">Regular</option><%End If%>
        <%If CInt(var150)=4 Then%><option value="4" selected>Bueno</option><%Else%><option value="4">Bueno</option><%End If%>
        <%If CInt(var162)=5 Then%><option value="5" selected>Excelente</option><%Else%><option value="5">Excelente</option><%End If%>
        </select>
        <% End If %>
        <% End If %>
        </td>
              </tr>
            </table>
        
        </td>
      </tr>
     </table>
     </div>
     
     <table width="75%" border="0" cellspacing="1" cellpadding="1" align="center">
      <tr>
    <td colspan="2">&nbsp;</td>
      </tr>
    <tr>
        <td colspan="2" align="center"><input name="Aceptar" value="   Aceptar   " type="submit" class="Boton">&nbsp;<input name="Cancelar" value="   Cancelar   " type="button" class="Boton" onClick="javascript:window.location.href='Actividades.asp'"></td>
      </tr>
  </table>
  </form>
        
<!-- Modal -->
<form id="formmodal" action="ProcesosElaborador2.asp?WhatToDo=cmdcooper&qRegistro=<%=qRegistro%>" method="post">
<div class="modal fade" id="uno" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">DETALLE MEDIO DE VERIFICACION</h4>
      </div>
    
         <div class="modal-body">          
      
             <%
                 If Session("auth_granted_poa_rol")="0010000000" or Session("auth_granted_poa_rol")="1000000000" or Session("auth_granted_poa_rol")="0001000000" Then
                  %>
             <div id="formdetalleejec"> 
             
             <div>
                 <div>
               
             <label for="Fecha">FECHA :<%response.write(Date)%></label>      
                     	
          </div>               
                 <br />
                 <div>
                   
                    <!--<label for="Porcentaje">Porcentaje</label>
                    <input id="Porcen" name="Porcen" type="text" class="form-control" placeholder="%" onKeyPress="return soloNumeros(event)" maxlength="3" size="3" align="middle">-->
                        <input id="MesGestion" name="MesGestion" type="hidden" class="form-control" placeholder="%"> 
                        <label for="Porcentaje" class="label label-default" style="font-size:10px;">Documento de respaldo</label>
                        <input id="nuri" name="nuri" type="text" class="form-control" required>
                 </div>
                 <br />                                          
                <div >
                        <label for="Porcentaje1" class="label label-default" style="font-size:10px;">Detalle</label>
                        <textarea id="detalle" name="detalle" class="form-control" rows="3" required></textarea>
                </div>                 
      </div>
      <div class="modal-footer">
        <input class="btn btn-primary" type="submit" value="Guardar" />
        <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>        
      </div>

        </div>
        <!--fin formulario-->
             <%End If %>
        <div id="gridDetalle"></div>
          
    </div>
   
  </div>
</div>
    </div>
</form>
<!-- MODAL - DETALLE -->


<% end if %>

<!--#include file="Pie.asp" -->
